<?php
/**
 * RequirementsController.php
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */

/** base class */
require_once 'Madoqua/Controller/Action/Abstract.php';

/**
 * RequirementsController.php
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */
class Install_RequirementsController extends Madoqua_Controller_Action_Abstract 
{
    /**
     * check for requirements
     */
    public function indexAction()
    {
        $this->view->writeRightsData = is_writable(Madoqua_Application::getDataDirectory());
        //write rights to the data directory
        $this->view->writeRightsTemp = is_writable(Madoqua_Application::getTempDirectory());
        //write rights to the temp directory
        $this->view->writeRightsHtaccess = is_writable(Madoqua_Application::getRootDirectory() . DIRECTORY_SEPARATOR . '.htaccess');
        //write rights to .htaccess
        
    }
}